{if $type != 1}
<form action="{:U('Order/sales_statistics')}" method="post" target="_blank">
<input name="type" type="hidden" value="1"/>
	<div class="searchBar" align="center">
		<div class="searchContent"  align="center">
					<ul class="searchContent">
					<li style="width:160px;">
						<input name="starttime" class="date" type="text" value="{$starttime}"/><a class="inputDateButton" href="javascript:;">选择</a>
					  </li>
					<li style="width:160px;">
						<input name="endtime" class="date" type="text" value="{$endtime}"/><a class="inputDateButton" href="javascript:;">选择</a>
					</li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
					<div class="buttonActive"><div class="buttonContent"><button type="reset">清空</button></div></div>
					</ul>
					</div>
	</div>
</form>
{else}

        <table width="100%" cellspacing="1" cellpadding="0" border="1">
             <thead>
      		<tr align="center">
				<th width="50">商品ID</th>
				<th width="200">商品名称</th>
				<th width="50">总量</th>
				<th width="50">总额</th>
				<th width="50">时间</th>
				<th width="50">操作</th>
			</tr>
      	</thead>
            	<tbody>
<volist name="list" id="vo">
      	<tr target="sid_user" align="center">
			<td width="50">{$vo['product_id']}</td>
				<td width="200">{$vo['product_name']}</td>
				<td width="50">{$vo['number']}</td>
				<td width="50">{$vo['priceall']/100|number_format=###,2,'.',''}</td>
				<td width="50">{$vo['add_time']||date="Y-m-d H:i:s",###}</td>
				<td width="50"><a title="{$vo['product_id']} 明细"  target="_blank" href="{:U('Order/sales_statistics_detail',array('product_id'=>$vo['product_id']))}" class="btnInfo">明细</a></td>
      	</tr>
		</volist>
      	</tbody>
        </table>
        {/if}